import request from '@/utils/request'

// 查询专家信息列表
export function listExpert(query) {
  return request({
    url: '/business/expert/list',
    method: 'get',
    params: query
  })
}
// 查询专家排班信息列表
export function listExpert1(query) {
  return request({
    url: '/business/expert/list1',
    method: 'get',
    params: query
  })
}


// 查询专家信息详细
export function getExpert(id) {
  return request({
    url: '/business/expert/' + id,
    method: 'get'
  })
}

// 新增专家信息
export function addExpert(data) {
  return request({
    url: '/business/expert',
    method: 'post',
    data: data
  })
}

// 修改专家信息
export function updateExpert(data) {
  return request({
    url: '/business/expert',
    method: 'put',
    data: data
  })
}

// 删除专家信息
export function delExpert(id) {
  return request({
    url: '/business/expert/' + id,
    method: 'delete'
  })
}

// 指定专家排班
export function expertSchedule(data) {
  return request({
    url: '/business/expertSchedule',
    method: 'post',
    data: data
  })
}

// 查询专家排班列表
export function expertScheduleList(params) {
  return request({
    url: '/business/expertSchedule/list',
    method: 'get',
    params
  })
}